package com.wisdytech.ccdserver.xxljob.config;

import com.alibaba.fastjson.JSON;
import com.wisdytech.ccdserver.bucket.serveice.IBucketTaskService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import lombok.extern.slf4j.XSlf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.Objects;

/**
 * @author SV00216491
 * @description: TODO
 * @date 2024-05-21 15:29:39
 * @version: 1.0
 */

@Component
@Slf4j
public class DataJobHandler {

    @Resource
    private IBucketTaskService bucketTaskService;


    @XxlJob("asyncDeleteTask")
    public ReturnT<String> asyncDeleteTask() {
        bucketTaskService.asyncBucketTaskByIds();
        log.info("开始执行任务了");
        return ReturnT.SUCCESS;
    }
}
